﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy01
{
    enum NPCtype
    {
        /// <summary>
        /// 任务类型
        /// </summary>
        Task,
        /// <summary>
        /// 商贩类型
        /// </summary>
        Pedlar,
        /// <summary>
        /// 铁匠类型
        /// </summary>
        Blacksmith
    }
    abstract class NPC
    {
        private string name;
        private NPCtype type;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public NPCtype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }

        public NPC(string name, NPCtype type)
        {
            this.name = name;
            this.type = type;
        }
        public abstract void talk();
     
    }
}
